<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.User"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'indexTop1.jsp' starting page</title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" id="txlz7"/>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
	<script type="text/javascript" src="<%=basePath%>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
   	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
	<script src="<%=basePath%>js/move.js" type=text/javascript></script>
	<script src="<%=basePath%>js/idrag.js" type=text/javascript></script>
	<script src="<%=basePath%>js/idrop.js" type=text/javascript></script>
	<script src="<%=basePath%>js/iutil.js" type=text/javascript></script>
	<script src="<%=basePath%>js/iresizable.js" type=text/javascript></script>
	<script src="<%=basePath%>js/ifxtransfer.js" type=text/javascript></script>
	
	<style type="text/css">
			td {
				font:12px/170% "宋体", "新宋体", "黑体"; color:#000
			}
			th {
				font:12px/170% "宋体", "新宋体", "黑体"; color:#000
			}
	</style>
	<style>
		 #divgroup {width:100%;height:100%;overflow:hidden;}
         .trBgColor { background-color:#A4D7E8; cursor: hand;}
         .trGroupColor { background-color:#C3EBF9; cursor: hand;}
         .trHiddivColor { background-color:#c3ebf9; cursor: hand;}
    	
		#container {
		    width:600px;
		    height:300px;
		    border:3px solid #c3daf9;
		}
		
		.calendar {
		    background-image:url(<%=basePath%>images/icon_64.gif) !important;
		}
		.xinjianqian {
		    background-image: url(<%=basePath%>images/s_01.gif) !important;
		}
		.xiugaiqian {
		    background-image: url(<%=basePath%>images/s_02.gif) !important;
		}
		.shanchuqian {
		    background-image: url(<%=basePath%>images/s_03.gif) !important;
		}
		
		.daohang {
		    background-image: url(<%=basePath%>images/ju.gif) !important;
		}
		.menu-title{
		    background: #ebeadb url(<%=basePath%>fileDocument/images/m_icon07.gif) repeat-x;
		    border-bottom:1px solid #99bbe8;
		    color:#15428b;
		    font:bold 10px tahoma,arial,verdana,sans-serif;
		    display:block;
		    padding:3px;
		}
.window {
	DISPLAY: none;
	LEFT: 300px;
	OVERFLOW: hidden;
	WIDTH: 500px;
	POSITION: absolute;
	TOP: 100px;
	HEIGHT: 200px
}

.windowTop {
	BACKGROUND-POSITION: right top;
	BACKGROUND-IMAGE: url(<%=basePath%>fileDocument/images/window_top_end.png);
	OVERFLOW: hidden;
	CURSOR: move;
	BACKGROUND-REPEAT: no-repeat;
	POSITION: relative;
	HEIGHT: 30px
}

.windowTopContent {
	BACKGROUND-POSITION: left top;
	FONT-WEIGHT: bold;
	FONT-SIZE: 14px;
	BACKGROUND-IMAGE: url(<%=basePath%>fileDocument/images/window_top_start.png);
	OVERFLOW: hidden;
	COLOR: #206D85;
	TEXT-INDENT: 10px;
	LINE-HEIGHT: 30px;
	MARGIN-RIGHT: 13px;
	BACKGROUND-REPEAT: no-repeat;
	FONT-FAMILY: Arial, Helvetica, sans-serif;
	HEIGHT: 30px
}
#windowBottom {
	BACKGROUND-POSITION: right bottom;
	BACKGROUND-IMAGE:
		url(<%=basePath%>fileDocument/images/window_bottom_end.png);
	BACKGROUND-REPEAT: no-repeat;
	POSITION: relative;
	HEIGHT: 370px
}

.windowBottomContent {
	BACKGROUND-POSITION: left bottom;
	BACKGROUND-IMAGE:
		url(<%=basePath%>fileDocument/images/window_bottom_start.png);
	MARGIN-RIGHT: 13px;
	BACKGROUND-REPEAT: no-repeat;
	POSITION: relative;
	HEIGHT: 370px
}

.windowResize {
	RIGHT: 3px;
	CURSOR: se-resize;
	BOTTOM: 5px;
	POSITION: absolute
}

#windowClose {
	RIGHT: 10px;
	CURSOR: pointer;
	POSITION: absolute;
	TOP: 10px
}

.windowContent {
	BORDER-RIGHT: #6caf00 1px solid;
	BORDER-TOP: #6caf00 1px solid;
	FONT-SIZE: 11px;
	LEFT: 10px;
	OVERFLOW: auto;
	BORDER-LEFT: #6caf00 1px solid;
	WIDTH: 475px;
	MARGIN-RIGHT: 15px;
	BORDER-BOTTOM: #6caf00 1px solid;
	FONT-FAMILY: Arial, Helvetica, sans-serif;
	POSITION: absolute;
	TOP: 30px;
	HEIGHT: 150px;
	BACKGROUND-COLOR: #fff
}
         
         .hiddiv {
			display: none;
			position: absolute;
			top: 6%;
			left: 0%;
			width: 84;;
			height: 72;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1002;
			overflow: auto;
		}
		.insertGroup {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1005;
			overflow: auto;
		}
		.updateGroupIndexDiv {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1002;
			overflow: auto;
		}
		.deleteGroupIndexDiv {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1002;
			overflow: auto;
		}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: #C1EBFC;
			z-index:1002;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=30);
		}
		.cha {
			padding-top: 0px
		}
		.tree {
	display: none;
	position: absolute;
	top: 25%;
	left: 30%;
	width: 253px;
	height: 235px;
	border: 1px solid #11557B;
	border-bottom: block;
	background-color: #E2F7FF;
	z-index: 2000;
	overflow: auto;
}
   </style>

	<%
		User user = (User)session.getAttribute("user");
		String permission = user.getPermission();
	 %>
   <script type="text/javascript">
		
		window.onload = function(){
		windowonload();
		<%if((permission.contains(",41,"))){%>
			var menu = new Ext.menu.Menu({
		        id: 'mainMenu',
		        width:100,
		        items: [
		            {
		                text: '新建文件夹',
		            	iconCls: 'xinjianqian',  // <-- icon
		                handler: function(){
							xianshiInsertGroup();
						}
		            },
		            {
		                text: '修改文件夹',
		                iconCls: 'xiugaiqian',  // <-- icon
			        	handler: function(){
							xianshiUpdateGroup();
						}
		            },
		            {
		                text: '删除文件夹',
		                iconCls: 'shanchuqian',  // <-- icon
		                handler: function(){
							xianshiDeleteGroup();
						}
		            }
		        ]
		    });
			var tb = new Ext.Toolbar(
				{
					height:25
				}
			);
		
		    tb.render('menu');
			tb.add(
			{
		            text:'发布',
		            iconCls: 'daohang',
		        	handler: function(){
						window.location.href="";
						location.href="<%=basePath %>fileDocument/fileDocument.jsp";
					}
		    },
		    {
		            text:'编辑文件夹',
		            iconCls: 'daohang',
		            menu: menu  // assign menu by instance
		        
		    }
		    ,
		    
		    {
		            text:'移动文件',
		            iconCls: 'daohang',
		        	handler: function(){
						window.location.href="";
						location.href="<%=basePath %>tjsinfo/tjsoa/fileDocument/intoCopyFile.do";
					}
		    }
		    ,
		    {
		            text:'删除文件',
		            iconCls: 'daohang',
		        	handler: function(){
		        		deleteListUser();
					}
		    }
		    ,
		    {
		            text:'设置下载权限',
		            iconCls: 'daohang',
		        	handler: function(){
		        		showdownuser();
						//window.location.href="";
						//location.href="<%=basePath %>tjsinfo/tjsoa/fileDocument/intoDownUser.do";
					}
		    },
			{
		            text:'查询名称',
		            iconCls: 'daohang',
		        	handler: function(){
		        		chaxunname1();
					}
		    },
		    {
		            text:'查询发布人',
		            iconCls: 'daohang',
		        	handler: function(){
		        		chaxunren1();
					}
		    }
		    );
		    tb.addFill();
		    tb.addText('<img id="windowResize" src="<%=basePath%>images/m_icon05.gif;"><a style="font-weight:bold; color:black;line-height: 22px;">内部文档</a>&nbsp;&nbsp;&nbsp;');
			<%}else{%>
		    var tb = new Ext.Toolbar(
				{
					height:25
				}
			);
			tb.render('menu');
			tb.add(
			{
		            text:'查询名称',
		            iconCls: 'daohang',
		        	handler: function(){
		        		chaxunname1();
					}
		    },
		    {
		            text:'查询发布人',
		            iconCls: 'daohang',
		        	handler: function(){
		        		chaxunren1();
					}
		    }
		    );
			tb.addFill();
		    tb.addText('<img id="windowResize" src="<%=basePath%>images/m_icon05.gif;"><a style="font-weight:bold; color:black;line-height: 22px;">内部文档</a>&nbsp;&nbsp;&nbsp;');
			<%}%>
		}
   </script>
  </head>
  
  <body>
  
  </body>
</html>
